
class DonePlugin{
    apply(compiler){
       compiler.hooks.run.tap('DonePlugin',(stats)=>{
            console.log('tap run');
        });
        compiler.hooks.done.tapAsync('DonePlugin',(stats,callback)=>{
            setTimeout(()=>{
                console.log('tapAsync done');
                callback();
            },3000);
        });
    }
}
module.exports = DonePlugin;